<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: winmgr.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a03728.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<div class="title">rtl/winmgr.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="a03728_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a202c4352bfc572d57289c5ba006e2d9f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a202c4352bfc572d57289c5ba006e2d9f">FindNCHit</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, LONG lPt)</td></tr>
<tr class="separator:a202c4352bfc572d57289c5ba006e2d9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a914150c867e606863ba8d2f56108797b"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a914150c867e606863ba8d2f56108797b">_FChildVisible</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a914150c867e606863ba8d2f56108797b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a875a7809ebc0d0efe9b482f29eb25d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a3a875a7809ebc0d0efe9b482f29eb25d">_MapWindowPoints</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwndFrom, <a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwndTo, LPPOINT lppt, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> cpt)</td></tr>
<tr class="separator:a3a875a7809ebc0d0efe9b482f29eb25d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bcfad2fca870b484811dc73379657f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a3bcfad2fca870b484811dc73379657f9">GetRealClientRect</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, LPRECT prc, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uFlags)</td></tr>
<tr class="separator:a3bcfad2fca870b484811dc73379657f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbf918ba75e1f7cafc3468a6325936e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#acbf918ba75e1f7cafc3468a6325936e5">_GetLastActivePopup</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:acbf918ba75e1f7cafc3468a6325936e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f657486a52cb852e841327d7c139dd0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a5f657486a52cb852e841327d7c139dd0">GetTopLevelTiled</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a5f657486a52cb852e841327d7c139dd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd272d555fe4a691f526815378818677"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#abd272d555fe4a691f526815378818677">_IsDescendant</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwndParent, <a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwndChild)</td></tr>
<tr class="separator:abd272d555fe4a691f526815378818677"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3225ce06580cb58802233512f3d9c81"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#ad3225ce06580cb58802233512f3d9c81">IsVisible</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:ad3225ce06580cb58802233512f3d9c81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c4e37334c4498482f6192199d683fbf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a7c4e37334c4498482f6192199d683fbf">GetWindowBorders</a> (LONG lStyle, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwExStyle, BOOL fWindow, BOOL fClient)</td></tr>
<tr class="separator:a7c4e37334c4498482f6192199d683fbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade0cb4b6bd4e2fa61aa92868dc44a651"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#ade0cb4b6bd4e2fa61aa92868dc44a651">SizeBoxHwnd</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:ade0cb4b6bd4e2fa61aa92868dc44a651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c0d274f705e6755e8105d785eda945f"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a1c0d274f705e6755e8105d785eda945f">NeedsWindowEdge</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwStyle, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwExStyle, BOOL fNewApp)</td></tr>
<tr class="separator:a1c0d274f705e6755e8105d785eda945f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c497cfa7da893253d32bd12b0ede73b"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a5c497cfa7da893253d32bd12b0ede73b">_HasCaptionIcon</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a5c497cfa7da893253d32bd12b0ede73b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98d6bbfb05b35cd9bc2e91d22a8ee3f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#a98d6bbfb05b35cd9bc2e91d22a8ee3f2">GetTopLevelWindow</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a98d6bbfb05b35cd9bc2e91d22a8ee3f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:ad760da1dd81d9e84dee607d18edfde39"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a9ea7647252855da35cfeb4253e1a4c80">PSERVERINFO</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a></td></tr>
<tr class="separator:ad760da1dd81d9e84dee607d18edfde39"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a914150c867e606863ba8d2f56108797b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a914150c867e606863ba8d2f56108797b">&#9670;&nbsp;</a></span>_FChildVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _FChildVisible </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00258">258</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;{</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="keywordflow">while</span> (TestwndChild(pwnd)) {</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        pwnd = REBASEPWND(pwnd, spwndParent);</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <span class="keywordflow">if</span> (pwnd == NULL)</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        <span class="keywordflow">if</span> (!TestWF(pwnd, WFVISIBLE))</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    }</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; </div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00263_source.html#l00052">FChildVisible()</a>, <a class="el" href="a00872_source.html#l00593">xxxCalcValidRects()</a>, <a class="el" href="a00833_source.html#l02005">xxxSBWndProc()</a> , 以及 <a class="el" href="a00851_source.html#l00081">xxxShowWindow()</a>.</p>

</div>
</div>
<a id="acbf918ba75e1f7cafc3468a6325936e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbf918ba75e1f7cafc3468a6325936e5">&#9670;&nbsp;</a></span>_GetLastActivePopup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> _GetLastActivePopup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00390">390</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;{</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    <span class="keywordflow">if</span> (pwnd-&gt;<a class="code" href="a02581.html#a84c905370767257751a8d54fb283da5a">spwndLastActive</a> == NULL)</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        <span class="keywordflow">return</span> pwnd;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160; </div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    <span class="keywordflow">return</span> REBASEPWND(pwnd, spwndLastActive);</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01408">tagWND::spwndLastActive</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00263_source.html#l00190">GetLastActivePopup()</a> , 以及 <a class="el" href="a00875_source.html#l00198">xxxSysCommand()</a>.</p>

</div>
</div>
<a id="a5c497cfa7da893253d32bd12b0ede73b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c497cfa7da893253d32bd12b0ede73b">&#9670;&nbsp;</a></span>_HasCaptionIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _HasCaptionIcon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00649">649</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;{</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;    HICON hIcon;</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;    <a class="code" href="a02569.html">PCLS</a> pcls;</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160; </div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WEFTOOLWINDOW))</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;        <span class="comment">// it&#39;s a tool window -- it doesn&#39;t get an icon</span></div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160; </div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;    <span class="keywordflow">if</span> ((TestWF(pwnd, WFBORDERMASK) != (BYTE)LOBYTE(WFDLGFRAME)) &amp;&amp;</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;            !TestWF(pwnd, WEFDLGMODALFRAME))</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;        <span class="comment">// they are not trying to look like a dialog, they get an icon</span></div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160; </div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;    <span class="keywordflow">if</span> (!TestWF(pwnd, WFWIN40COMPAT) &amp;&amp;</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;        (((<a class="code" href="a02569.html">PCLS</a>)REBASEALWAYS(pwnd, pcls))-&gt;atomClassName == (ATOM)DIALOGCLASS))</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;        <span class="comment">// it&#39;s an older REAL dialog -- it doesn&#39;t get an icon</span></div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160; </div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;    hIcon = (HICON) <a class="code" href="a00365.html#a600525b4b6d1cfd74c99b5484051ce5c">_GetProp</a>(pwnd, MAKEINTATOM(<a class="code" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#ab6599d31c334db912307ec6e9605fe7e">atomIconSmProp</a>), TRUE);</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160; </div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;    <span class="keywordflow">if</span> (hIcon) {</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;        <span class="comment">// it&#39;s a 4.0 dialog with a small icon -- if that small icon is</span></div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;        <span class="comment">// something other than the generic small windows icon, it gets an icon</span></div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;        <span class="keywordflow">return</span>(hIcon != <a class="code" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#acb7132559e18fe5d6f700a10a8d20cef">hIconSmWindows</a>);</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;    }</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;    hIcon = (HICON) <a class="code" href="a00365.html#a600525b4b6d1cfd74c99b5484051ce5c">_GetProp</a>(pwnd, MAKEINTATOM(<a class="code" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a160faca06801b3578c3d78db2774a499">atomIconProp</a>), TRUE);</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160; </div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;    <span class="keywordflow">if</span> (hIcon &amp;&amp; (hIcon != <a class="code" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#acdfddcbcfef5a27210ac39e03825f9ee">hIcoWindows</a>))</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;        <span class="comment">// it&#39;s a 4.0 dialog with no small icon, but instead a large icon</span></div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;        <span class="comment">// that&#39;s not the generic windows icon -- it gets an icon</span></div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;        <span class="keywordflow">return</span>(TRUE);</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160; </div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;    pcls = REBASEALWAYS(pwnd, pcls);</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;    <span class="keywordflow">if</span> (pcls-&gt;spicnSm) {</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;        <span class="keywordflow">if</span> (pcls-&gt;spicnSm != HMObjectFromHandle(<a class="code" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#acb7132559e18fe5d6f700a10a8d20cef">hIconSmWindows</a>)) {</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;            <span class="comment">// it&#39;s a 4.0 dialog with a class icon that&#39;s not the generic windows</span></div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;            <span class="comment">// icon -- it gets an icon</span></div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;            <span class="keywordflow">return</span>(TRUE);</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;        }</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;    }</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160; </div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;    <span class="comment">// it&#39;s a 4.0 dialog with no small or large icon -- it doesn&#39;t get an icon</span></div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;    <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03740_source.html#l00069">_GetProp()</a>, <a class="el" href="a00365_source.html#l01036">tagSERVERINFO::atomIconProp</a>, <a class="el" href="a00365_source.html#l01035">tagSERVERINFO::atomIconSmProp</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00365_source.html#l01037">tagSERVERINFO::hIconSmWindows</a> , 以及 <a class="el" href="a00365_source.html#l01038">tagSERVERINFO::hIcoWindows</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03728_source.html#l00022">FindNCHit()</a>, <a class="el" href="a00752_source.html#l00096">ISV_ValidateMinMaxInfo()</a>, <a class="el" href="a00614_source.html#l00544">xxxDrawCaptionTemp()</a> , 以及 <a class="el" href="a03590_source.html#l01770">xxxMNFindWindowFromPoint()</a>.</p>

</div>
</div>
<a id="abd272d555fe4a691f526815378818677"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd272d555fe4a691f526815378818677">&#9670;&nbsp;</a></span>_IsDescendant()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _IsDescendant </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwndParent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwndChild</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00432">432</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;{</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    <span class="keywordflow">while</span> (1) {</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;        <span class="keywordflow">if</span> (pwndParent == pwndChild)</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;            <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;        <span class="keywordflow">if</span> (GETFNID(pwndChild) == FNID_DESKTOP)</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        pwndChild = REBASEPWND(pwndChild, spwndParent);</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;    }</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160; </div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00107_source.html#l00336">_GetNextDlgTabItem()</a>, <a class="el" href="a00107_source.html#l00207">_NextControl()</a>, <a class="el" href="a00905_source.html#l00441">CalcVisRgn()</a>, <a class="el" href="a03272_source.html#l00287">GetNextDlgHelpItem()</a>, <a class="el" href="a00872_source.html#l00136">PWInsertAfter()</a> , 以及 <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a>.</p>

</div>
</div>
<a id="a3a875a7809ebc0d0efe9b482f29eb25d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a875a7809ebc0d0efe9b482f29eb25d">&#9670;&nbsp;</a></span>_MapWindowPoints()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int _MapWindowPoints </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwndFrom</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwndTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPPOINT&#160;</td>
          <td class="paramname"><em>lppt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>cpt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00280">280</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;{</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keywordtype">int</span> dx, dy;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="comment">     * If a window is NULL, use the desktop window</span></div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="keywordflow">if</span> (pwndFrom == NULL)</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        pwndFrom = <a class="code" href="a03743.html#a6fff890dabd74b268fbcba3368ecc560">_GetDesktopWindow</a>();</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keywordflow">if</span> (pwndTo == NULL)</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        pwndTo = <a class="code" href="a03743.html#a6fff890dabd74b268fbcba3368ecc560">_GetDesktopWindow</a>();</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160; </div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;<span class="comment">     * Compute deltas</span></div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    dx = pwndFrom-&gt;<a class="code" href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">rcClient</a>.left - pwndTo-&gt;<a class="code" href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">rcClient</a>.left;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    dy = pwndFrom-&gt;<a class="code" href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">rcClient</a>.top - pwndTo-&gt;<a class="code" href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">rcClient</a>.top;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160; </div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;<span class="comment">     * Map the points</span></div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <span class="keywordflow">while</span> (cpt--) {</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;        lppt-&gt;x += dx;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;        lppt-&gt;y += dy;</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        ++lppt;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordflow">return</span> MAKELONG(dx, dy);</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03743_source.html#l00229">_GetDesktopWindow()</a> , 以及 <a class="el" href="a00365_source.html#l01399">tagWND::rcClient</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00263_source.html#l00149">MapWindowPoints()</a>.</p>

</div>
</div>
<a id="a202c4352bfc572d57289c5ba006e2d9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a202c4352bfc572d57289c5ba006e2d9f">&#9670;&nbsp;</a></span>FindNCHit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int FindNCHit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lPt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00022">22</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    POINT pt;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    RECT rcWindow;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    RECT rcClient;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    RECT rcClientAdj;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordtype">int</span> cBorders;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordtype">int</span> dxButton;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    pt.x = LOWORD(lPt);</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    pt.y = HIWORD(lPt);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>, pt))</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keywordflow">return</span> HTNOWHERE;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WFMINIMIZED)) {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <a class="code" href="a00365.html#add42cfa617c629deef27087b88368891">CopyInflateRect</a>(&amp;rcWindow, &amp;pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>,</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            -(SYSMET(CXFIXEDFRAME) + SYSMET(CXBORDER)), -(SYSMET(CYFIXEDFRAME) + SYSMET(CYBORDER)));</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;rcWindow, pt))</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            <span class="keywordflow">return</span> HTCAPTION;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordflow">goto</span> CaptionHit;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    }</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="comment">// Get client rectangle</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    rcClient = pwnd-&gt;<a class="code" href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">rcClient</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;rcClient, pt))</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keywordflow">return</span> HTCLIENT;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="comment">// Are we in &quot;pseudo&quot; client, i.e. the client &amp; scrollbars &amp; border</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WEFCLIENTEDGE))</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="a00365.html#add42cfa617c629deef27087b88368891">CopyInflateRect</a>(&amp;rcClientAdj, &amp;rcClient, SYSMET(CXEDGE), SYSMET(CYEDGE));</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        rcClientAdj = rcClient;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WFVPRESENT))</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        rcClientAdj.right += SYSMET(CXVSCROLL);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WFHPRESENT))</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        rcClientAdj.bottom += SYSMET(CYHSCROLL);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;rcClientAdj, pt))</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="comment">// Subtract out window borders</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        cBorders = <a class="code" href="a03728.html#a7c4e37334c4498482f6192199d683fbf">GetWindowBorders</a>(pwnd-&gt;style, pwnd-&gt;ExStyle, TRUE, FALSE);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <a class="code" href="a00365.html#add42cfa617c629deef27087b88368891">CopyInflateRect</a>(&amp;rcWindow, &amp;pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>,</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            -cBorders*SYSMET(CXBORDER), -cBorders*SYSMET(CYBORDER));</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="comment">// Are we on the border?</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;rcWindow, pt))</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            <span class="comment">// On a sizing border?</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <span class="keywordflow">if</span> (!TestWF(pwnd, WFSIZEBOX)) {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                <span class="comment">// Old compatibility thing:  For 3.x windows that just had</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                <span class="comment">// a border, we returned HTNOWHERE, believe it or not,</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                <span class="comment">// because our hit-testing code was so brain dead.</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                <span class="keywordflow">if</span> (!TestWF(pwnd, WFWIN40COMPAT) &amp;&amp;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;                        !TestWF(pwnd, WFDLGFRAME)    &amp;&amp;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                        !TestWF(pwnd, WEFDLGMODALFRAME)) {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;                    <span class="keywordflow">return</span>(HTNOWHERE);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                    <span class="keywordflow">return</span>(HTBORDER);  <span class="comment">// We are on a dlg frame.</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                <span class="keywordtype">int</span> ht;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                <span class="comment">// Note this improvement.  The HT codes are numbered so that</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                <span class="comment">// if you subtract HTSIZEFIRST-1 from them all, they sum up.  I.E.,</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                <span class="comment">// (HTLEFT - HTSIZEFIRST + 1) + (HTTOP - HTSIZEFIRST + 1) ==</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                <span class="comment">// (HTTOPLEFT - HTSIZEFIRST + 1).</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                <span class="keywordflow">if</span> (TestWF(pwnd, WEFTOOLWINDOW))</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                    <a class="code" href="a00935.html#afa361f1e7cc3d9957b148ff982f8d030">InflateRect</a>(&amp;rcWindow, -SYSMET(CXSMSIZE), -SYSMET(CYSMSIZE));</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                    <a class="code" href="a00935.html#afa361f1e7cc3d9957b148ff982f8d030">InflateRect</a>(&amp;rcWindow, -SYSMET(CXSIZE), -SYSMET(CYSIZE));</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                <span class="keywordflow">if</span> (pt.y &lt; rcWindow.top)</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                    ht = (HTTOP - HTSIZEFIRST + 1);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pt.y &gt;= rcWindow.bottom)</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                    ht = (HTBOTTOM - HTSIZEFIRST + 1);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                    ht = 0;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                <span class="keywordflow">if</span> (pt.x &lt; rcWindow.left)</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;                    ht += (HTLEFT - HTSIZEFIRST + 1);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pt.x &gt;= rcWindow.right)</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                    ht += (HTRIGHT - HTSIZEFIRST + 1);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                <span class="keywordflow">return</span> (ht + HTSIZEFIRST - 1);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            }</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        }</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="comment">// Are we above the client area?</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">if</span> (pt.y &lt; rcClientAdj.top)</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        {</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            <span class="comment">// Are we in the caption?</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;            <span class="keywordflow">if</span> (TestWF(pwnd, WFBORDERMASK) == LOBYTE(WFCAPTION))</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;CaptionHit:</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                <span class="keywordflow">if</span> (pt.y &gt;= rcWindow.top)</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                    <span class="keywordflow">if</span> (TestWF(pwnd, WEFTOOLWINDOW))</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                    {</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                        rcWindow.top += SYSMET(CYSMCAPTION);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                        dxButton = SYSMET(CXSMSIZE);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                    }</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                    {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                        rcWindow.top += SYSMET(CYCAPTION);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                        dxButton = SYSMET(CXSIZE);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                    }</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                    <span class="keywordflow">if</span> ((pt.y &gt;= rcWindow.top) &amp;&amp; TestWF(pwnd, WFMPRESENT))</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                        <span class="keywordflow">return</span>(HTMENU);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                    <span class="keywordflow">if</span> ((pt.x &gt;= rcWindow.left)  &amp;&amp;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                        (pt.x &lt;  rcWindow.right) &amp;&amp;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                        (pt.y &lt;  rcWindow.top))</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                    {</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                        <span class="comment">// Are we in the window menu?</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                        <span class="keywordflow">if</span> (TestWF(pwnd, WFSYSMENU))</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                        {</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                            rcWindow.left += dxButton;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                            <span class="keywordflow">if</span> (pt.x &lt; rcWindow.left)</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                            {</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                                <span class="keywordflow">if</span> (!<a class="code" href="a03728.html#a5c497cfa7da893253d32bd12b0ede73b">_HasCaptionIcon</a>(pwnd))</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                                <span class="comment">// iconless windows have no sysmenu hit rect</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                                    <span class="keywordflow">return</span>(HTCAPTION);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                                <span class="keywordflow">return</span>(HTSYSMENU);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                            }</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                        }</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (TestWF(pwnd, WFWIN40COMPAT))</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                            <span class="keywordflow">return</span>(HTCAPTION);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                        <span class="comment">// only a close button if window has a system menu</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                        <span class="comment">// Are we in the close button?</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;                        rcWindow.right -= dxButton;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                        <span class="keywordflow">if</span> (pt.x &gt;= rcWindow.right)</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                            <span class="keywordflow">return</span> HTCLOSE;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                        <span class="keywordflow">if</span> ((pt.x &lt; rcWindow.right) &amp;&amp; !TestWF(pwnd, WEFTOOLWINDOW))</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                        {</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                            <span class="comment">// Are we in the maximize/restore button?</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                            <span class="keywordflow">if</span> (TestWF(pwnd, (WFMAXBOX | WFMINBOX)))</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                            {</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                                <span class="comment">// Note that sizing buttons are same width for both</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                                <span class="comment">// big captions and small captions.</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                                rcWindow.right -= dxButton;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                                <span class="keywordflow">if</span> (pt.x &gt;= rcWindow.right)</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                                    <span class="keywordflow">return</span> HTZOOM;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                                <span class="comment">// Are we in the minimize button?</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                                rcWindow.right -= dxButton;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;                                <span class="keywordflow">if</span> (pt.x &gt;= rcWindow.right)</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                                    <span class="keywordflow">return</span> HTREDUCE;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                            }</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;                            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (TestWF(pwnd, WEFCONTEXTHELP))</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                            {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                                rcWindow.right -= dxButton;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;                                <span class="keywordflow">if</span> (pt.x &gt;= rcWindow.right)</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;                                    <span class="keywordflow">return</span> HTHELP;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                            }</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                        }</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                    }</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;                }</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;                <span class="comment">// We&#39;re in the caption proper</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                <span class="keywordflow">return</span> HTCAPTION;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;            }</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            <span class="comment">// Are we in the menu?</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;            <span class="keywordflow">if</span> (TestWF(pwnd, WFMPRESENT))</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;                <span class="keywordflow">return</span> HTMENU;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        }</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    }</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    {</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="comment">// NOTE:</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        <span class="comment">// We can only be here if we are on the client edge, horz scroll,</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        <span class="comment">// sizebox, or vert scroll.  Hence, if we are not on the first 3,</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="comment">// we must be on the last one.</span></div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <span class="comment">// Are we on the client edge?</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="keywordflow">if</span> (TestWF(pwnd, WEFCLIENTEDGE))</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            <a class="code" href="a00935.html#afa361f1e7cc3d9957b148ff982f8d030">InflateRect</a>(&amp;rcClientAdj, -SYSMET(CXEDGE), -SYSMET(CYEDGE));</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;            <span class="keywordflow">if</span> (!<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;rcClientAdj, pt))</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;                <span class="keywordflow">return</span>(HTBORDER);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        }</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="comment">// Are we on the scrollbars?</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        <span class="keywordflow">if</span> (TestWF(pwnd, WFHPRESENT) &amp;&amp; (pt.y &gt;= rcClient.bottom))</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        {</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pt.y &lt; rcClientAdj.bottom);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            <span class="keywordflow">if</span> (TestWF(pwnd, WFVPRESENT) &amp;&amp; (pt.x &gt;= rcClient.right))</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                <span class="keywordflow">return</span>(<a class="code" href="a03728.html#ade0cb4b6bd4e2fa61aa92868dc44a651">SizeBoxHwnd</a>(pwnd) ? HTBOTTOMRIGHT : HTGROWBOX);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                <span class="keywordflow">return</span>(HTHSCROLL);</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        }</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;        {</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(TestWF(pwnd, WFVPRESENT));</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pt.x &gt;= rcClient.right);</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pt.x &lt; rcClientAdj.right);</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            <span class="keywordflow">return</span>(HTVSCROLL);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;        }</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    }</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="comment">// We give up.</span></div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="comment">// Win31 returned HTNOWHERE in this case; For compatibility, we will</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <span class="comment">// keep it that way.</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <span class="keywordflow">return</span>(HTNOWHERE);</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; </div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03728_source.html#l00649">_HasCaptionIcon()</a>, <a class="el" href="a00935_source.html#l00046">CopyInflateRect()</a>, <a class="el" href="a03728_source.html#l00501">GetWindowBorders()</a>, <a class="el" href="a00935_source.html#l00158">InflateRect()</a>, <a class="el" href="a00935_source.html#l00111">PtInRect()</a>, <a class="el" href="a00365_source.html#l01399">tagWND::rcClient</a>, <a class="el" href="a00365_source.html#l01398">tagWND::rcWindow</a>, <a class="el" href="a03728_source.html#l00555">SizeBoxHwnd()</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00041_source.html#l00555">DefWindowProcWorker()</a>, <a class="el" href="a03272_source.html#l00501">WinHelpA()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a>, <a class="el" href="a00785_source.html#l00466">xxxMNLoop()</a>, <a class="el" href="a00800_source.html#l00741">xxxTrackInitSize()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="a3bcfad2fca870b484811dc73379657f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bcfad2fca870b484811dc73379657f9">&#9670;&nbsp;</a></span>GetRealClientRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GetRealClientRect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>prc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uFlags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00323">323</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;{</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <span class="keywordflow">if</span> (GETFNID(pwnd) == FNID_DESKTOP) {</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160; </div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;        *prc = (uFlags &amp; GRC_FULLSCREEN) ? pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a> : <a class="code" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#ad47c3c3836f1cb6cfb9ee4dd5d344496">rcWork</a>;</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160; </div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(pwnd, prc);</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        <span class="keywordflow">if</span> (uFlags &amp; GRC_SCROLLS) {</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;            <span class="keywordflow">if</span> (TestWF(pwnd, WFHPRESENT))</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                prc-&gt;bottom += SYSMET(CYHSCROLL);</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;            <span class="keywordflow">if</span> (TestWF(pwnd, WFVPRESENT))</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;                prc-&gt;right += SYSMET(CXVSCROLL);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        }</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    }</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160; </div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <span class="keywordflow">if</span> (uFlags &amp; GRC_MINWNDS) {</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        <span class="keywordflow">switch</span> (SYSMET(ARRANGE) &amp; ~ARW_HIDE) {</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;            <span class="keywordflow">case</span> ARW_TOPLEFT | ARW_RIGHT:</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;            <span class="keywordflow">case</span> ARW_TOPRIGHT | ARW_LEFT:</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                <span class="comment">// Leave space on top for one row of min windows</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;                prc-&gt;top += SYSMET(CYMINSPACING);</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; </div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;            <span class="keywordflow">case</span> ARW_TOPLEFT | ARW_DOWN:</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;            <span class="keywordflow">case</span> ARW_BOTTOMLEFT | ARW_UP:</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;                <span class="comment">// Leave space on left for one column of min windows</span></div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                prc-&gt;left += SYSMET(CXMINSPACING);</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160; </div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;            <span class="keywordflow">case</span> ARW_TOPRIGHT | ARW_DOWN:</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            <span class="keywordflow">case</span> ARW_BOTTOMRIGHT | ARW_UP:</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;                <span class="comment">// Leave space on right for one column of min windows</span></div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                prc-&gt;right -= SYSMET(CXMINSPACING);</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160; </div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;            <span class="keywordflow">case</span> ARW_BOTTOMLEFT | ARW_RIGHT:</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;            <span class="keywordflow">case</span> ARW_BOTTOMRIGHT | ARW_LEFT:</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;                <span class="comment">// Leave space on bottom for one row of min windows</span></div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;                prc-&gt;bottom -= SYSMET(CYMINSPACING);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        }</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    }</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00365_source.html#l01398">tagWND::rcWindow</a> , 以及 <a class="el" href="a00365_source.html#l01007">tagSERVERINFO::rcWork</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00200_source.html#l00714">CascadeWindows()</a>, <a class="el" href="a00752_source.html#l00028">ISV_InitMinMaxInfo()</a>, <a class="el" href="a00752_source.html#l00237">ParkIcon()</a>, <a class="el" href="a00635_source.html#l01087">SetTiledRect()</a>, <a class="el" href="a00200_source.html#l00849">TileWindows()</a> , 以及 <a class="el" href="a00710_source.html#l00031">xxxArrangeIconicWindows()</a>.</p>

</div>
</div>
<a id="a5f657486a52cb852e841327d7c139dd0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f657486a52cb852e841327d7c139dd0">&#9670;&nbsp;</a></span>GetTopLevelTiled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> GetTopLevelTiled </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00409">409</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;{</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    <span class="keywordflow">while</span> (TestWF(pwnd, WFCHILD) || pwnd-&gt;<a class="code" href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">spwndOwner</a> != NULL)</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        pwnd = GetWindowCreator(pwnd);</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    <span class="keywordflow">return</span> pwnd;</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01394">tagWND::spwndOwner</a>.</p>

</div>
</div>
<a id="a98d6bbfb05b35cd9bc2e91d22a8ee3f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98d6bbfb05b35cd9bc2e91d22a8ee3f2">&#9670;&nbsp;</a></span>GetTopLevelWindow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> GetTopLevelWindow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00703">703</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;{</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;    <span class="keywordflow">if</span> (pwnd != NULL) {</div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;        <span class="keywordflow">while</span> (TestwndChild(pwnd))</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;            pwnd = REBASEPWND(pwnd, spwndParent);</div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;    }</div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160; </div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;    <span class="keywordflow">return</span> pwnd;</div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00890_source.html#l00099">_GetNextQueueWindow()</a>, <a class="el" href="a00815_source.html#l00051">_SelectPalette()</a>, <a class="el" href="a00167_source.html#l00559">ImeSetContextHandler()</a>, <a class="el" href="a00101_source.html#l01177">InternalDialogBox()</a>, <a class="el" href="a03272_source.html#l00501">WinHelpA()</a>, <a class="el" href="a00686_source.html#l00430">xxxActivateThisWindow()</a>, <a class="el" href="a00635_source.html#l00031">xxxCreateWindowExWOW()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a>, <a class="el" href="a00671_source.html#l00217">xxxDWP_ProcessVirtKey()</a>, <a class="el" href="a00875_source.html#l00025">xxxHandleNCMouseGuys()</a> , 以及 <a class="el" href="a00725_source.html#l00665">xxxInternalActivateKeyboardLayout()</a>.</p>

</div>
</div>
<a id="a7c4e37334c4498482f6192199d683fbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c4e37334c4498482f6192199d683fbf">&#9670;&nbsp;</a></span>GetWindowBorders()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GetWindowBorders </td>
          <td>(</td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lStyle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwExStyle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fWindow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fClient</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00501">501</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;{</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    <span class="keywordtype">int</span> cBorders = 0;</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160; </div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;    <span class="keywordflow">if</span> (fWindow) {</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;        <span class="comment">// Is there a 3D border around the window?</span></div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;        <span class="keywordflow">if</span> (dwExStyle &amp; WS_EX_WINDOWEDGE)</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;            cBorders += 2;</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (dwExStyle &amp; WS_EX_STATICEDGE)</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;            ++cBorders;</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160; </div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        <span class="comment">// Is there a single flat border around the window?  This is true for</span></div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;        <span class="comment">// WS_BORDER, WS_DLGFRAME, and WS_EX_DLGMODALFRAME windows.</span></div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;        <span class="keywordflow">if</span> ( (lStyle &amp; WS_CAPTION) || (dwExStyle &amp; WS_EX_DLGMODALFRAME) )</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;                ++cBorders;</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160; </div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        <span class="comment">// Is there a sizing flat border around the window?</span></div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        <span class="keywordflow">if</span> (lStyle &amp; WS_SIZEBOX)</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;                cBorders += <a class="code" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#ab4a2b5b4deef4d2014cbe6c3bb434b41">gclBorder</a>;</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    }</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160; </div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    <span class="keywordflow">if</span> (fClient) {</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;            <span class="comment">// Is there a 3D border around the client?</span></div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;            <span class="keywordflow">if</span> (dwExStyle &amp; WS_EX_CLIENTEDGE)</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;            cBorders += 2;</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;    }</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160; </div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;    <span class="keywordflow">return</span>(cBorders);</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l00982">tagSERVERINFO::gclBorder</a> , 以及 <a class="el" href="a00020_source.html#l00039">gpsi</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00263_source.html#l00550">_AdjustWindowRectEx()</a>, <a class="el" href="a00200_source.html#l01879">DefFrameProcWorker()</a>, <a class="el" href="a03728_source.html#l00022">FindNCHit()</a>, <a class="el" href="a00752_source.html#l00028">ISV_InitMinMaxInfo()</a>, <a class="el" href="a00752_source.html#l00096">ISV_ValidateMinMaxInfo()</a>, <a class="el" href="a00794_source.html#l00025">MNPositionSysMenu()</a>, <a class="el" href="a00752_source.html#l00451">xxxAnimateCaption()</a>, <a class="el" href="a00611_source.html#l00021">xxxCalcClientRect()</a>, <a class="el" href="a00614_source.html#l00768">xxxDrawCaptionBar()</a>, <a class="el" href="a00662_source.html#l00046">xxxDrawWindowFrame()</a>, <a class="el" href="a00671_source.html#l00763">xxxDWPPrint()</a>, <a class="el" href="a03275_source.html#l00079">xxxHelpLoop()</a>, <a class="el" href="a00191_source.html#l00512">xxxLBSize()</a>, <a class="el" href="a03590_source.html#l01770">xxxMNFindWindowFromPoint()</a>, <a class="el" href="a00767_source.html#l00768">xxxMNRecomputeBarIfNeeded()</a> , 以及 <a class="el" href="a00614_source.html#l00039">xxxTrackCaptionButton()</a>.</p>

</div>
</div>
<a id="ad3225ce06580cb58802233512f3d9c81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3225ce06580cb58802233512f3d9c81">&#9670;&nbsp;</a></span>IsVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL IsVisible </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00456">456</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;{</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwndT;</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160; </div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    <span class="keywordflow">for</span> (pwndT = pwnd; pwndT; pwndT = REBASEPWND(pwndT, spwndParent)) {</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160; </div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;<span class="comment">         * Invisible windows are always invisible</span></div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        <span class="keywordflow">if</span> (!TestWF(pwndT, WFVISIBLE))</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160; </div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        <span class="keywordflow">if</span> (TestWF(pwndT, WFMINIMIZED)) {</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160; </div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;<span class="comment">             * Children of minimized windows are always invisible.</span></div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;            <span class="keywordflow">if</span> (pwndT != pwnd)</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;                <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        }</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160; </div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;<span class="comment">         * If we&#39;re at the desktop, then we don&#39;t want to go any further.</span></div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        <span class="keywordflow">if</span> (GETFNID(pwndT) == FNID_DESKTOP)</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    }</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160; </div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00644_source.html#l00560">_GetDCEx()</a>, <a class="el" href="a00005_source.html#l00170">BNSetFont()</a>, <a class="el" href="a00005_source.html#l01283">ButtonWndProcWorker()</a>, <a class="el" href="a00905_source.html#l00441">CalcVisRgn()</a>, <a class="el" href="a00833_source.html#l00108">EnableSBCtlArrows()</a>, <a class="el" href="a03281_source.html#l00054">EnumPwndDlgChildProc()</a>, <a class="el" href="a00860_source.html#l00035">FBitsTouch()</a>, <a class="el" href="a00860_source.html#l01031">SpbCheckRect()</a>, <a class="el" href="a00248_source.html#l00738">StaticRepaint()</a>, <a class="el" href="a00248_source.html#l00794">StaticWndProcWorker()</a>, <a class="el" href="a00620_source.html#l00094">UT_InvertCaret()</a>, <a class="el" href="a00686_source.html#l00430">xxxActivateThisWindow()</a>, <a class="el" href="a00005_source.html#l00259">xxxBNGetDC()</a>, <a class="el" href="a00614_source.html#l00768">xxxDrawCaptionBar()</a>, <a class="el" href="a00662_source.html#l00046">xxxDrawWindowFrame()</a>, <a class="el" href="a00179_source.html#l00696">xxxLBResetContent()</a>, <a class="el" href="a00752_source.html#l01085">xxxMinMaximize()</a>, <a class="el" href="a00896_source.html#l00302">xxxRedrawWindow()</a>, <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a> , 以及 <a class="el" href="a00833_source.html#l01070">xxxSetScrollBar()</a>.</p>

</div>
</div>
<a id="a1c0d274f705e6755e8105d785eda945f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c0d274f705e6755e8105d785eda945f">&#9670;&nbsp;</a></span>NeedsWindowEdge()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL NeedsWindowEdge </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwStyle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwExStyle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fNewApp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00613">613</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;{</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    BOOL    fGetsWindowEdge;</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160; </div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    fGetsWindowEdge = FALSE;</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160; </div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    <span class="keywordflow">if</span> (dwExStyle &amp; WS_EX_DLGMODALFRAME)</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;        fGetsWindowEdge = TRUE;</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (dwExStyle &amp; WS_EX_STATICEDGE)</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        fGetsWindowEdge = FALSE;</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (dwStyle &amp; WS_THICKFRAME)</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;        fGetsWindowEdge = TRUE;</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">switch</span> (dwStyle &amp; WS_CAPTION)</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;    {</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;        <span class="keywordflow">case</span> WS_DLGFRAME:</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;            fGetsWindowEdge = TRUE;</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160; </div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;        <span class="keywordflow">case</span> WS_CAPTION:</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;            fGetsWindowEdge = fNewApp;</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;    }</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160; </div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;    <span class="keywordflow">return</span>(fGetsWindowEdge);</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00263_source.html#l00550">_AdjustWindowRectEx()</a>, <a class="el" href="a00635_source.html#l00031">xxxCreateWindowExWOW()</a> , 以及 <a class="el" href="a00626_source.html#l00187">xxxSetWindowStyle()</a>.</p>

</div>
</div>
<a id="ade0cb4b6bd4e2fa61aa92868dc44a651"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade0cb4b6bd4e2fa61aa92868dc44a651">&#9670;&nbsp;</a></span>SizeBoxHwnd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> SizeBoxHwnd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03728_source.html">rtl/winmgr.c</a> 第 <a class="el" href="a03728_source.html#l00555">555</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;{</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;    <span class="keywordtype">int</span> xbrChild = pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>.right;</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;    <span class="keywordtype">int</span> ybrChild = pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>.bottom;</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160; </div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;    <span class="keywordflow">while</span> (GETFNID(pwnd) != FNID_DESKTOP) {</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;        <span class="keywordflow">if</span> (TestWF(pwnd, WFSIZEBOX)) {</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;            <span class="comment">// First sizeable parent found</span></div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;            <span class="keywordtype">int</span> xbrParent;</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;            <span class="keywordtype">int</span> ybrParent;</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160; </div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;            <span class="keywordflow">if</span> (TestWF(pwnd, WFMAXIMIZED))</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;                <span class="keywordflow">return</span>(NULL);</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160; </div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;            xbrParent = pwnd-&gt;<a class="code" href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">rcClient</a>.right;</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;            ybrParent = pwnd-&gt;<a class="code" href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">rcClient</a>.bottom;</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160; </div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;            <span class="comment">/*  If the sizebox dude is within an EDGE of the client&#39;s bottom</span></div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;<span class="comment">             *  right corner, let this succeed.  That way people who draw</span></div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;<span class="comment">             *  their own sunken clients will be happy.</span></div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;            <span class="keywordflow">if</span> ((xbrChild + SYSMET(CXEDGE) &lt; xbrParent) || (ybrChild + SYSMET(CYEDGE) &lt; ybrParent)) {</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;                <span class="comment">// Child&#39;s bottom, right corner of SIZEBOX isn&#39;t close enough</span></div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;                <span class="comment">// to bottom right of parent&#39;s client.</span></div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;                <span class="keywordflow">return</span>(NULL);</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;            }</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160; </div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;            <span class="keywordflow">return</span>(pwnd);</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;        }</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160; </div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;        <span class="keywordflow">if</span> (!TestWF(pwnd, WFCHILD) || TestWF(pwnd, WFCPRESENT))</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160; </div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        pwnd = REBASEPWND(pwnd, spwndParent);</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;    }</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;    <span class="keywordflow">return</span>(NULL);</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01399">tagWND::rcClient</a> , 以及 <a class="el" href="a00365_source.html#l01398">tagWND::rcWindow</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00833_source.html#l00329">DrawSize()</a>, <a class="el" href="a03728_source.html#l00022">FindNCHit()</a> , 以及 <a class="el" href="a00923_source.html#l00227">xxxWindowHitTest2()</a>.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="ad760da1dd81d9e84dee607d18edfde39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad760da1dd81d9e84dee607d18edfde39">&#9670;&nbsp;</a></span>gpsi</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a9ea7647252855da35cfeb4253e1a4c80">PSERVERINFO</a> gpsi</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00020_source.html">clglobal.c</a> 第 <a class="el" href="a00020_source.html#l00039">39</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00620_source.html#l00238">_CreateCaret()</a>, <a class="el" href="a03275_source.html#l00015">_GetWindowContextHelpId()</a>, <a class="el" href="a03719_source.html#l00551">_GetWindowPlacement()</a>, <a class="el" href="a03728_source.html#l00649">_HasCaptionIcon()</a>, <a class="el" href="a00719_source.html#l00833">_LoadCursorsAndIcons()</a>, <a class="el" href="a00815_source.html#l00051">_SelectPalette()</a>, <a class="el" href="a00620_source.html#l00449">_SetCaretBlinkTime()</a>, <a class="el" href="a00620_source.html#l00486">_SetCaretPos()</a>, <a class="el" href="a00827_source.html#l00107">_SetDebugErrorLevel()</a>, <a class="el" href="a00878_source.html#l00065">_SetDoubleClickTime()</a>, <a class="el" href="a00731_source.html#l00135">_SetKeyboardState()</a>, <a class="el" href="a03275_source.html#l00022">_SetWindowContextHelpId()</a>, <a class="el" href="a00629_source.html#l00182">_WOWCleanup()</a>, <a class="el" href="a00047_source.html#l02792">BitmapFromDIB()</a>, <a class="el" href="a00005_source.html#l00353">BNCalcRect()</a>, <a class="el" href="a03719_source.html#l00634">CheckPlacementBounds()</a>, <a class="el" href="a00035_source.html#l00749">ClientThreadSetup()</a>, <a class="el" href="a00062_source.html#l00605">ConnectConv()</a>, <a class="el" href="a00095_source.html#l00059">CreateDlgFont()</a>, <a class="el" href="a00089_source.html#l00376">DDEMLClientWndProc()</a>, <a class="el" href="a00827_source.html#l02869">DecrMBox()</a>, <a class="el" href="a00101_source.html#l00446">DefDlgProcWorker()</a>, <a class="el" href="a00041_source.html#l00555">DefWindowProcWorker()</a>, <a class="el" href="a03731_source.html#l00248">DeleteProperties()</a>, <a class="el" href="a00881_source.html#l00129">DestroyTask()</a>, <a class="el" href="a00671_source.html#l00949">DestroyWindowSmIcon()</a>, <a class="el" href="a00881_source.html#l00575">DirectedScheduleTask()</a>, <a class="el" href="a00890_source.html#l00525">DrawSwitchWndHilite()</a>, <a class="el" href="a03224_source.html#l00997">DT_InitDrawTextInfo()</a>, <a class="el" href="a00671_source.html#l00904">DWP_GetIcon()</a>, <a class="el" href="a00122_source.html#l00574">ECSetFont()</a>, <a class="el" href="a03611_source.html#l00559">GetAsyncKeyState()</a>, <a class="el" href="a03665_source.html#l01633">GetCharDimensions()</a>, <a class="el" href="a03281_source.html#l00028">GetContextHelpId()</a>, <a class="el" href="a00026_source.html#l02622">GetDialogBaseUnits()</a>, <a class="el" href="a00047_source.html#l03896">GetIcoCurBpp()</a>, <a class="el" href="a03611_source.html#l00589">GetKeyState()</a>, <a class="el" href="a00122_source.html#l00072">GetMaxOverlapChars()</a>, <a class="el" href="a03728_source.html#l00323">GetRealClientRect()</a>, <a class="el" href="a03728_source.html#l00501">GetWindowBorders()</a>, <a class="el" href="a00716_source.html#l00922">GetWindowNCMetrics()</a>, <a class="el" href="a00695_source.html#l01537">HMChangeOwnerThread()</a>, <a class="el" href="a00695_source.html#l00193">HMGrowHandleTable()</a>, <a class="el" href="a00695_source.html#l00117">HMInitHandleTable()</a>, <a class="el" href="a00584_source.html#l04932">Idsi()</a>, <a class="el" href="a00299_source.html#l00016">ImmRegisterClient()</a>, <a class="el" href="a00827_source.html#l02858">IncrMBox()</a>, <a class="el" href="a03665_source.html#l00928">InitFunctionTables()</a>, <a class="el" href="a00719_source.html#l01596">InitializeClientPfnArrays()</a>, <a class="el" href="a03665_source.html#l01064">InitMBStringArrays()</a>, <a class="el" href="a00890_source.html#l01093">InitSwitchWndInfo()</a>, <a class="el" href="a00665_source.html#l02855">InitUserScreen()</a>, <a class="el" href="a00095_source.html#l00176">InternalCreateDialog()</a>, <a class="el" href="a00083_source.html#l00061">InternalDdeInitialize()</a>, <a class="el" href="a00584_source.html#l07453">Itest()</a>, <a class="el" href="a00584_source.html#l07500">Iuver()</a>, <a class="el" href="a00194_source.html#l00025">LBGetVariableHeightItemHeight()</a>, <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00047_source.html#l01733">LoadBmp()</a>, <a class="el" href="a00719_source.html#l00183">LW_LoadProfileInitData()</a>, <a class="el" href="a00719_source.html#l00433">LW_LoadSomeStrings()</a>, <a class="el" href="a03242_source.html#l00841">MapClientToServerPfn()</a>, <a class="el" href="a00212_source.html#l00910">MB_AddPushButtons()</a>, <a class="el" href="a00212_source.html#l00841">MB_UpdateDlgHdr()</a>, <a class="el" href="a00212_source.html#l00956">MB_UpdateDlgItem()</a>, <a class="el" href="a00212_source.html#l00267">MessageBoxWorker()</a>, <a class="el" href="a00128_source.html#l03002">MLEditWndProc()</a>, <a class="el" href="a00128_source.html#l02404">MLMouseMotion()</a>, <a class="el" href="a00632_source.html#l00317">MungeClipData()</a>, <a class="el" href="a03614_source.html#l03711">NtUserGetAsyncKeyState()</a>, <a class="el" href="a03614_source.html#l03846">NtUserGetCaretBlinkTime()</a>, <a class="el" href="a03614_source.html#l07744">NtUserGetKeyState()</a>, <a class="el" href="a00632_source.html#l00252">PasteScreenPalette()</a>, <a class="el" href="a00827_source.html#l02793">PostShellHookMessages()</a>, <a class="el" href="a00089_source.html#l00057">ProcessDDEMLInitiate()</a>, <a class="el" href="a03290_source.html#l01816">ProcessUpdateKeyStateEvent()</a>, <a class="el" href="a00629_source.html#l00076">PseudoDestroyClassWindows()</a>, <a class="el" href="a00233_source.html#l00066">RegisterService()</a>, <a class="el" href="a00101_source.html#l01293">RepositionRect()</a>, <a class="el" href="a00689_source.html#l00884">ResetDisplayDevice()</a>, <a class="el" href="a00689_source.html#l00793">ResetSharedDesktops()</a>, <a class="el" href="a00827_source.html#l00144">SetDesktopMetrics()</a>, <a class="el" href="a00686_source.html#l02131">SetForegroundThread()</a>, <a class="el" href="a00716_source.html#l00796">SetNCFonts()</a>, <a class="el" href="a00716_source.html#l00563">SetNCMetrics()</a>, <a class="el" href="a00878_source.html#l00097">SetSysColor()</a>, <a class="el" href="a03638_source.html#l00066">SetSysColorsTemp()</a>, <a class="el" href="a00797_source.html#l00104">SetSysMenu()</a>, <a class="el" href="a00824_source.html#l03276">SetWakeBit()</a>, <a class="el" href="a00212_source.html#l00458">SoftModalMessageBox()</a>, <a class="el" href="a03218_source.html#l00171">TabTextOut()</a>, <a class="el" href="a00731_source.html#l00289">UpdateAsyncKeyState()</a>, <a class="el" href="a03290_source.html#l02790">UpdateKeyState()</a>, <a class="el" href="a00719_source.html#l00955">UpdateSystemIconsFromRegistry()</a>, <a class="el" href="a00035_source.html#l00058">UserClientDllInitialize()</a>, <a class="el" href="a03665_source.html#l01691">UserInitialize()</a>, <a class="el" href="a00752_source.html#l00892">xxx_DrawAnimatedRects()</a>, <a class="el" href="a00686_source.html#l00430">xxxActivateThisWindow()</a>, <a class="el" href="a00059_source.html#l00071">xxxCBCreateHandler()</a>, <a class="el" href="a00053_source.html#l01600">xxxCBShowListBoxWindow()</a>, <a class="el" href="a00872_source.html#l04473">xxxCheckFullScreen()</a>, <a class="el" href="a00833_source.html#l01556">xxxContScroll()</a>, <a class="el" href="a00635_source.html#l00031">xxxCreateWindowExWOW()</a>, <a class="el" href="a00671_source.html#l01105">xxxCreateWindowSmIcon()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a>, <a class="el" href="a00635_source.html#l01273">xxxDestroyWindow()</a>, <a class="el" href="a00881_source.html#l00672">xxxDirectedYield()</a>, <a class="el" href="a00614_source.html#l00768">xxxDrawCaptionBar()</a>, <a class="el" href="a00614_source.html#l00544">xxxDrawCaptionTemp()</a>, <a class="el" href="a00800_source.html#l01392">xxxDrawDragRect()</a>, <a class="el" href="a00773_source.html#l00407">xxxDrawMenuItem()</a>, <a class="el" href="a00671_source.html#l00991">xxxDWP_SetIcon()</a>, <a class="el" href="a00719_source.html#l01535">xxxFinalUserInit()</a>, <a class="el" href="a00635_source.html#l01817">xxxFreeWindow()</a>, <a class="el" href="a00632_source.html#l01347">xxxGetDummyBitmap()</a>, <a class="el" href="a00632_source.html#l01408">xxxGetDummyDib()</a>, <a class="el" href="a00614_source.html#l00216">xxxGetWindowSmIcon()</a>, <a class="el" href="a03275_source.html#l00079">xxxHelpLoop()</a>, <a class="el" href="a00863_source.html#l00028">xxxHkCallHook()</a>, <a class="el" href="a00719_source.html#l00324">xxxInitWinStaDevices()</a>, <a class="el" href="a00191_source.html#l00062">xxxLBCreate()</a>, <a class="el" href="a00179_source.html#l00325">xxxLBInsertItem()</a>, <a class="el" href="a00182_source.html#l02729">xxxLBoxCtlCharInput()</a>, <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>, <a class="el" href="a00191_source.html#l00436">xxxLBSetFont()</a>, <a class="el" href="a00668_source.html#l00999">xxxLoadDesktopWallpaper()</a>, <a class="el" href="a00719_source.html#l00705">xxxLW_DCInit()</a>, <a class="el" href="a00767_source.html#l00204">xxxMNItemSize()</a>, <a class="el" href="a00800_source.html#l00909">xxxMoveSize()</a>, <a class="el" href="a00800_source.html#l00377">xxxMS_TrackMove()</a>, <a class="el" href="a00719_source.html#l00645">xxxODI_ColorInit()</a>, <a class="el" href="a00890_source.html#l00780">xxxPaintIconsInSwitchWindow()</a>, <a class="el" href="a00842_source.html#l01876">xxxReceiveMessage()</a>, <a class="el" href="a00749_source.html#l00074">xxxRecreateSmallIcons()</a>, <a class="el" href="a00842_source.html#l01013">xxxSendMessageCallback()</a>, <a class="el" href="a00842_source.html#l00644">xxxSendMessageTimeout()</a>, <a class="el" href="a00827_source.html#l00602">xxxSetAndDrawNCMetrics()</a>, <a class="el" href="a00626_source.html#l00026">xxxSetClassIconEnum()</a>, <a class="el" href="a03719_source.html#l00911">xxxSetInternalWindowPos()</a>, <a class="el" href="a03719_source.html#l00744">xxxSetWindowPlacement()</a>, <a class="el" href="a00890_source.html#l01434">xxxShowSwitchWindow()</a>, <a class="el" href="a00881_source.html#l00234">xxxSleepTask()</a>, <a class="el" href="a00857_source.html#l00028">xxxSnapWindow()</a>, <a class="el" href="a00875_source.html#l00198">xxxSysCommand()</a>, <a class="el" href="a00827_source.html#l01195">xxxSystemParametersInfo()</a>, <a class="el" href="a00833_source.html#l01606">xxxTrackBox()</a>, <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>, <a class="el" href="a00719_source.html#l01681">xxxUpdatePerUserSystemParameters()</a>, <a class="el" href="a00881_source.html#l00518">xxxUserYield()</a> , 以及 <a class="el" href="a03665_source.html#l00678">xxxWrapCallWindowProc()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa02581_html_a9e4b9545017c505ebd9b8808bd470ab9"><div class="ttname"><a href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">tagWND::spwndOwner</a></div><div class="ttdeci">struct tagWND * spwndOwner</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01394">user.h:1394</a></div></div>
<div class="ttc" id="aa03728_html_ade0cb4b6bd4e2fa61aa92868dc44a651"><div class="ttname"><a href="a03728.html#ade0cb4b6bd4e2fa61aa92868dc44a651">SizeBoxHwnd</a></div><div class="ttdeci">PWND SizeBoxHwnd(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03728_source.html#l00555">rtl/winmgr.c:555</a></div></div>
<div class="ttc" id="aa02513_html_acdfddcbcfef5a27210ac39e03825f9ee"><div class="ttname"><a href="a02513.html#acdfddcbcfef5a27210ac39e03825f9ee">tagSERVERINFO::hIcoWindows</a></div><div class="ttdeci">HICON hIcoWindows</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01038">user.h:1038</a></div></div>
<div class="ttc" id="aa00365_html_a373eb8782e10ebad75e466db8d01ebe0"><div class="ttname"><a href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a></div><div class="ttdeci">BOOL _GetClientRect(PWND pwnd, LPRECT prc)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00745">rtl/wow.c:745</a></div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa03728_html_a5c497cfa7da893253d32bd12b0ede73b"><div class="ttname"><a href="a03728.html#a5c497cfa7da893253d32bd12b0ede73b">_HasCaptionIcon</a></div><div class="ttdeci">BOOL _HasCaptionIcon(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03728_source.html#l00649">rtl/winmgr.c:649</a></div></div>
<div class="ttc" id="aa02513_html_a160faca06801b3578c3d78db2774a499"><div class="ttname"><a href="a02513.html#a160faca06801b3578c3d78db2774a499">tagSERVERINFO::atomIconProp</a></div><div class="ttdeci">ATOM atomIconProp</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01036">user.h:1036</a></div></div>
<div class="ttc" id="aa00935_html_a75b3bf802c369845c4381fcee638bc8a"><div class="ttname"><a href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a></div><div class="ttdeci">BOOL APIENTRY PtInRect(CONST RECT *prc, POINT pt)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00111">rect.c:111</a></div></div>
<div class="ttc" id="aa02513_html_ad47c3c3836f1cb6cfb9ee4dd5d344496"><div class="ttname"><a href="a02513.html#ad47c3c3836f1cb6cfb9ee4dd5d344496">tagSERVERINFO::rcWork</a></div><div class="ttdeci">RECT rcWork</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01007">user.h:1007</a></div></div>
<div class="ttc" id="aa03728_html_a7c4e37334c4498482f6192199d683fbf"><div class="ttname"><a href="a03728.html#a7c4e37334c4498482f6192199d683fbf">GetWindowBorders</a></div><div class="ttdeci">int GetWindowBorders(LONG lStyle, DWORD dwExStyle, BOOL fWindow, BOOL fClient)</div><div class="ttdef"><b>Definition:</b> <a href="a03728_source.html#l00501">rtl/winmgr.c:501</a></div></div>
<div class="ttc" id="aa02581_html_a2778d611c2b27395e559c94d05732e1f"><div class="ttname"><a href="a02581.html#a2778d611c2b27395e559c94d05732e1f">tagWND::rcWindow</a></div><div class="ttdeci">RECT rcWindow</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01398">user.h:1398</a></div></div>
<div class="ttc" id="aa02581_html"><div class="ttname"><a href="a02581.html">tagWND</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01388">user.h:1388</a></div></div>
<div class="ttc" id="aa00935_html_afa361f1e7cc3d9957b148ff982f8d030"><div class="ttname"><a href="a00935.html#afa361f1e7cc3d9957b148ff982f8d030">InflateRect</a></div><div class="ttdeci">BOOL APIENTRY InflateRect(LPRECT prc, int cx, int cy)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00158">rect.c:158</a></div></div>
<div class="ttc" id="aa02513_html_acb7132559e18fe5d6f700a10a8d20cef"><div class="ttname"><a href="a02513.html#acb7132559e18fe5d6f700a10a8d20cef">tagSERVERINFO::hIconSmWindows</a></div><div class="ttdeci">HICON hIconSmWindows</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01037">user.h:1037</a></div></div>
<div class="ttc" id="aa02581_html_a84c905370767257751a8d54fb283da5a"><div class="ttname"><a href="a02581.html#a84c905370767257751a8d54fb283da5a">tagWND::spwndLastActive</a></div><div class="ttdeci">struct tagWND * spwndLastActive</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01408">user.h:1408</a></div></div>
<div class="ttc" id="aa00365_html_add42cfa617c629deef27087b88368891"><div class="ttname"><a href="a00365.html#add42cfa617c629deef27087b88368891">CopyInflateRect</a></div><div class="ttdeci">BOOL APIENTRY CopyInflateRect(LPRECT prcDst, CONST RECT *prcSrc, int cx, int cy)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00046">rect.c:46</a></div></div>
<div class="ttc" id="aa00365_html_a600525b4b6d1cfd74c99b5484051ce5c"><div class="ttname"><a href="a00365.html#a600525b4b6d1cfd74c99b5484051ce5c">_GetProp</a></div><div class="ttdeci">HANDLE _GetProp(PWND pwnd, LPWSTR pszKey, BOOL fInternal)</div><div class="ttdef"><b>Definition:</b> <a href="a03740_source.html#l00069">rtl/winprop.c:69</a></div></div>
<div class="ttc" id="aa03743_html_a6fff890dabd74b268fbcba3368ecc560"><div class="ttname"><a href="a03743.html#a6fff890dabd74b268fbcba3368ecc560">_GetDesktopWindow</a></div><div class="ttdeci">PWND _GetDesktopWindow(void)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00229">client/wow.c:229</a></div></div>
<div class="ttc" id="aa02581_html_a17d59d04094aef8b577c0aa781cdf2c6"><div class="ttname"><a href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">tagWND::rcClient</a></div><div class="ttdeci">RECT rcClient</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01399">user.h:1399</a></div></div>
<div class="ttc" id="aa02569_html"><div class="ttname"><a href="a02569.html">tagCLS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01323">user.h:1323</a></div></div>
<div class="ttc" id="aa02513_html_ab6599d31c334db912307ec6e9605fe7e"><div class="ttname"><a href="a02513.html#ab6599d31c334db912307ec6e9605fe7e">tagSERVERINFO::atomIconSmProp</a></div><div class="ttdeci">ATOM atomIconSmProp</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01035">user.h:1035</a></div></div>
<div class="ttc" id="aa02513_html_ab4a2b5b4deef4d2014cbe6c3bb434b41"><div class="ttname"><a href="a02513.html#ab4a2b5b4deef4d2014cbe6c3bb434b41">tagSERVERINFO::gclBorder</a></div><div class="ttdeci">int gclBorder</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00982">user.h:982</a></div></div>
<div class="ttc" id="aa03728_html_ad760da1dd81d9e84dee607d18edfde39"><div class="ttname"><a href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a></div><div class="ttdeci">PSERVERINFO gpsi</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00039">clglobal.c:39</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_d1396aa20fcbba3cbb80fda211a2145f.html">rtl</a></li><li class="navelem"><a class="el" href="a03728.html">winmgr.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
